package com.example.xpvideo.entity;

import java.io.Serializable;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 商品评论表(Comment)实体类
 *
 * @author 杨丽辉
 * @since 2021-10-18 20:36:57
 */
@JsonInclude(JsonInclude.Include.NON_NULL)
public class Comment implements Serializable {
    private static final long serialVersionUID = 842691428913742822L;
        /**
    *主键
    * 评论id
    * isnull 1
    */
        private Long id;

    /**
    * 评论人userId
    * isnull 0
    */            private Long userId;
    /**
    * 商品id
    * isnull 0
    */            private String goodsId;
    /**
    * 规格id
    * isnull 0
    */            private String itemId;
    /**
    * 订单商品表id
    * isnull 0
    */            private Integer orderGoodsId;
    /**
    * 父评论id
    * isnull 0
    */            private String parentCommentId;
    /**
    * 父评论的用户id
    * isnull 0
    */            private String parentCommentUserId;
    /**
    * 被回复的评论id
    * isnull 0
    */            private String replyCommentId;
    /**
    * 被回复的评论用户id
    * isnull 0
    */            private String replyCommentUserId;
    /**
    * 评论等级[ 1 一级评论 默认 ，2 二级评论]
    * isnull 0
    */            private Integer commentLevel;
    /**
    * 评论的内容
    * isnull 0
    */            private String content;
    /**
    * 点赞数
    * isnull 0
    */            private Integer praiseNum;
    /**
    * 创建时间
    * isnull 0
    */            private Integer createTime;
    /**
    * 图片数组
    * isnull 0
    */            private String imgList;
    /**
    * 修改时间
    * isnull 0
    */            private Integer updateTime;
    /**
    * 0为删除,1为已删除
    * isnull 0
    */            private Integer deleted;
    /**
    * 商品评论星级 1 一星 2 二星 3三星 4四星 5五星
    * isnull 0
    */            private Integer goodsComment;
    /**
    * 服务评论星级 1 一星 2 二星 3三星 4四星 5五星
    * isnull 0
    */            private Integer serviceComment;
    /**
    * 物流评论星级 1 一星 2 二星 3三星 4四星 5五星
    * isnull 0
    */            private Integer expressComment;
    /**
    * 描述相符星级1 一星 2 二星 3三星 4四星 5五星
    * isnull 0
    */            private Integer descriptionComment;
        
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
        
    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }
        
    public String getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(String goodsId) {
        this.goodsId = goodsId;
    }
        
    public String getItemId() {
        return itemId;
    }

    public void setItemId(String itemId) {
        this.itemId = itemId;
    }
        
    public Integer getOrderGoodsId() {
        return orderGoodsId;
    }

    public void setOrderGoodsId(Integer orderGoodsId) {
        this.orderGoodsId = orderGoodsId;
    }
        
    public String getParentCommentId() {
        return parentCommentId;
    }

    public void setParentCommentId(String parentCommentId) {
        this.parentCommentId = parentCommentId;
    }
        
    public String getParentCommentUserId() {
        return parentCommentUserId;
    }

    public void setParentCommentUserId(String parentCommentUserId) {
        this.parentCommentUserId = parentCommentUserId;
    }
        
    public String getReplyCommentId() {
        return replyCommentId;
    }

    public void setReplyCommentId(String replyCommentId) {
        this.replyCommentId = replyCommentId;
    }
        
    public String getReplyCommentUserId() {
        return replyCommentUserId;
    }

    public void setReplyCommentUserId(String replyCommentUserId) {
        this.replyCommentUserId = replyCommentUserId;
    }
        
    public Integer getCommentLevel() {
        return commentLevel;
    }

    public void setCommentLevel(Integer commentLevel) {
        this.commentLevel = commentLevel;
    }
        
    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }
        
    public Integer getPraiseNum() {
        return praiseNum;
    }

    public void setPraiseNum(Integer praiseNum) {
        this.praiseNum = praiseNum;
    }
        
    public Integer getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Integer createTime) {
        this.createTime = createTime;
    }
        
    public String getImgList() {
        return imgList;
    }

    public void setImgList(String imgList) {
        this.imgList = imgList;
    }
        
    public Integer getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Integer updateTime) {
        this.updateTime = updateTime;
    }
        
    public Integer getDeleted() {
        return deleted;
    }

    public void setDeleted(Integer deleted) {
        this.deleted = deleted;
    }
        
    public Integer getGoodsComment() {
        return goodsComment;
    }

    public void setGoodsComment(Integer goodsComment) {
        this.goodsComment = goodsComment;
    }
        
    public Integer getServiceComment() {
        return serviceComment;
    }

    public void setServiceComment(Integer serviceComment) {
        this.serviceComment = serviceComment;
    }
        
    public Integer getExpressComment() {
        return expressComment;
    }

    public void setExpressComment(Integer expressComment) {
        this.expressComment = expressComment;
    }
        
    public Integer getDescriptionComment() {
        return descriptionComment;
    }

    public void setDescriptionComment(Integer descriptionComment) {
        this.descriptionComment = descriptionComment;
    }

        @Override
    public String toString() {
        return "{" +
                    " \"id\":" + id +
                                  " ,\"userId\":" + userId +
                            " ,\"goodsId\":" + goodsId +
                            " ,\"itemId\":" + itemId +
                            " ,\"orderGoodsId\":" + orderGoodsId +
                            " ,\"parentCommentId\":" + parentCommentId +
                            " ,\"parentCommentUserId\":" + parentCommentUserId +
                            " ,\"replyCommentId\":" + replyCommentId +
                            " ,\"replyCommentUserId\":" + replyCommentUserId +
                            " ,\"commentLevel\":" + commentLevel +
                            " ,\"content\":" + content +
                            " ,\"praiseNum\":" + praiseNum +
                            " ,\"createTime\":" + createTime +
                            " ,\"imgList\":" + imgList +
                            " ,\"updateTime\":" + updateTime +
                            " ,\"deleted\":" + deleted +
                            " ,\"goodsComment\":" + goodsComment +
                            " ,\"serviceComment\":" + serviceComment +
                            " ,\"expressComment\":" + expressComment +
                            " ,\"descriptionComment\":" + descriptionComment +
                  '}';
    }


}
